#include <iostream>
#include <string>

using namespace std;

class Student 
{
public:
    Student(std::string n, int a) : name(n), age(a) {
        std::cout << "Student(std::string n, int a)" << std::endl;
    }
    ~Student() { std::cout << "~Student()" << std::endl; }
    std::string getName() const { return name; }
    int getAge() const { return age; }

private:
    string name;
    int age;
};

int main()
{
    Student stu1("yunke", 100);
    std::cout << "name = " << stu1.getName() << std::endl;
    std::cout << "age = " << stu1.getAge() << std::endl;
    return 0;
}
